#ifndef TRAFFICCONTROLITEM_H
#define TRAFFICCONTROLITEM_H

#include <QGraphicsPixmapItem>
#include "streetmap.h"
#include "geometryutilities.h"
#include "trafficcontrolframe.h"

class TrafficControlItem : public QGraphicsPixmapItem
{
public:
  TrafficControlItem(const QString &name);
  void setFrame(TrafficControlFrame* frame);
  void setIntersection(const StreetMap::Intersection *intersection);

private:
  QString mName;
  QMap<QString, QGraphicsPixmapItem*> mLightGraphics; //needs a better/faster key
  const StreetMap::Intersection *mIntersection;
};


#endif
